<?php


namespace EchoPHP\Cache;

use EchoPHP\Foundation\ServiceProvider;

class CacheServiceProvider extends ServiceProvider
{
    protected $defer = true;

    public function register() {
        $this->app->singleton('cache', function () {
            return new CacheManager($this->app);
        });
    }

    public function provides() {
        return ['cache'];
    }
}